package com.quan.server;

import com.quan.server.endpoint.ConfigEndpoint;
import com.quan.server.endpoint.MessageEndpoint;
import com.quan.server.endpoint.OauthEndpoint;
import com.quan.server.endpoint.SinglePageApplicationController;
import com.quan.server.service.AndroidProxyService;
import com.quan.server.service.BookService;
import com.quan.server.service.HelloService;
import com.quan.server.service.IncomeService;
import com.quan.server.service.TaobaoOrderService;
import com.quan.server.service.ConfigItemService;
import com.quan.server.service.CustomerService;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.stereotype.Component;

import javax.ws.rs.ApplicationPath;

@Component
@ApplicationPath(Const.ApplicationPath)
public class JerseyConfig extends ResourceConfig {
    public JerseyConfig() {
        register(HelloService.class);
        register(BookService.class);
        register(CustomerService.class);
        register(ConfigItemService.class);
        register(IncomeService.class);
        register(TaobaoOrderService.class);

        register(ConfigEndpoint.class);
        register(MessageEndpoint.class);
        register(SinglePageApplicationController.class);
        register(OauthEndpoint.class);

        register(com.quan.server.manager.api.ManagerService.class);

        register(AndroidProxyService.class);
    }
}